// 注册多语言
const localeContext =  require['context']('../../components', true, /\.((\/[a-zA-Z0-9]+){3}|(\/[a-zA-Z0-9]+){2}(\/SyncComponents)(\/[a-zA-Z0-9]+))\/preview\/(locale\.ts(x?))$/i)
const localeData = {};
localeContext.keys().forEach(path => {
    const data = localeContext(path)
    Object.assign(localeData, data)
});

const localeDucomentContext = require['context']('./document', false, /\.ts$/i);
localeDucomentContext.keys().forEach(path => {
    const data = localeDucomentContext(path)
    Object.assign(localeData, data)
});

export default localeData